package com.jdrx.sw.sewage.beans.vo;

import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "设备运行时长", description = "设备运行时长")
@Data
public class DeviceRunTimeVO {
	@ApiModelProperty(value = "设备名称")
	private String name;
	
	@ApiModelProperty(value = "采集设备id")
	private Long gatherDevId;
	
	@ApiModelProperty(value = "采集点位id")
	private Long gatherPointId;
	
	@ApiModelProperty(value = "采集时间yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime collectTime;
	
	@ApiModelProperty(value = "采集点位")
	private String key;
	
	@ApiModelProperty(value = "采集点位值")
	private double value;
}